using System;
using System.Collections.Generic;
using System.Text;
using System.Timers;
using System.IO;

namespace LoggingClient.NetworkLog
{
    public class NetworkLogger : AbstractLogger
    {
        private void WriteLog(string str)
        {
            try
            {
                LogClient.Instance.WriteLine(str);
            }
            catch (Exception)
            { }
        }

        protected override void WriteLine(LogLevel level, string log)
        {
            log = FormatLine(level, log);

            try
            {
                WriteLog(log);
            }
            catch (Exception)
            { }
        }
    }
}
